﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AddQuiz.aspx.vb" Inherits="Training.AddQuiz" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training - Training:: Add New Quiz</title>
<link rel="Stylesheet" type="text/css" media="screen" href="../css/adminStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctr">
        <h2>Add Quiz*</h2>
        <span class="small">(* this form creates the quiz, but 
            questions and answers will need to be added)</span>
        
        <div style="width:500px;text-align:left;margin:0 auto;" class="text">
            <div class="row">
                <div class="half">Quiz Name: 
                    <asp:RequiredFieldValidator ID="rfQuizName" runat="server" 
                        ErrorMessage="required" ControlToValidate="tbQuizName" CssClass="small" 
                        Display="Dynamic"></asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbQuizName" CssClass="formfield" Width="200" runat="server"></asp:TextBox></div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">Pass Percentage: <asp:RequiredFieldValidator ID="rfPass" runat="server" 
                        ErrorMessage="required" ControlToValidate="tbPass" CssClass="small" 
                        Display="Dynamic"></asp:RequiredFieldValidator><br />
                    <asp:TextBox ID="tbPass" CssClass="formfield" Width="20" runat="server"></asp:TextBox></div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half">Certificate Image: <asp:RequiredFieldValidator ID="rfFileUpload" runat="server" 
                        ErrorMessage="required" ControlToValidate="fuCert" CssClass="small" 
                        Display="Dynamic"></asp:RequiredFieldValidator><br />
                    <asp:FileUpload ID="fuCert" CssClass="formfield" runat="server" /><br />
                    (file must be bmp and have correct field placement)</div>
                <div class="clr"></div>
            </div>
            
            <div class="row">
                <div class="half"><asp:Button ID="btnAdd" runat="server" Text="Add Quiz" CssClass="button" /></div>
                <div class="clr"></div>
            </div>
        </div>
        
        <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
        
        <p><b><a href="QuizControl.aspx">Quiz Control</a></b></p>
        <br />
        <p><a href="Default.aspx">Admin Main</a></p>
    </div>
    </form>
</body>
</html>
